package org.simple.wechat.demo.api.request;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.simple.wechat.demo.config.SeasonDeserializer;
import org.simple.wechat.demo.config.SeasonSerializer;
import org.simple.wechat.demo.config.WeekSerialize;
import org.simple.wechat.demo.dto.Season;
import org.simple.wechat.demo.dto.Week;

/***
 * @author gaoqijin
 * @date 2020-11-18
 * @Description
 */
public class SimpleRequest {

    private String name;

    @JsonDeserialize(using = SeasonDeserializer.class)
    @JsonSerialize(using = SeasonSerializer.class)
    private Season season;

    private Week week;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Season getSeason() {
        return season;
    }

    public void setSeason(Season season) {
        this.season = season;
    }

    public Week getWeek() {
        return week;
    }

    public void setWeek(Week week) {
        this.week = week;
    }
}
